package com.yc.cloud.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 杨智杰
 * @date 2021/8/13 13:59
 */
@Data
@Accessors(chain = true)
@TableName(value = "demo_order")
public class Demo extends BaseEntity {

    @TableField("name")
    @ApiModelProperty(value = "姓名")
    private String name;

    @TableField("age")
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @TableField("six")
    @ApiModelProperty(value = "性别(0女, 1男)")
    private Integer six;

    @TableField("dept_id")
    @ApiModelProperty(value = "所属部门Id")
    private Long deptId;

}
